\set ON_ERROR_STOP 1
BEGIN;

ALTER TABLE language
    ALTER COLUMN frequency SET DATA TYPE SMALLINT;

ALTER TABLE script
    ALTER COLUMN frequency SET DATA TYPE SMALLINT;

COMMIT;
